package icom.acm.net;
/**
 * @author shench
 * 用来进行服务器对用户的认证
 */
import javax.mail.Authenticator;
import javax.mail.PasswordAuthentication;

public class Email_Autherticator extends Authenticator{
	private String username = "hello.coding@gmail.com"; // 这个是你的邮箱用户名    
	private String password = "codingthefuture"; // 你的邮箱密码    
	
    public Email_Autherticator(){
        super();
    }

    public Email_Autherticator(String user, String pwd){
        super();
        username = user;
        password = pwd;
    }

    @Override
	public PasswordAuthentication getPasswordAuthentication(){
        return new PasswordAuthentication(username, password);
    }
}